Sprite multiplexing

Sprite multiplexing is a computer graphics technique. It is mainly applicable to older video graphics hardware and computer systems.

Some video graphics hardware is capable of displaying sprites. Depending on the hardware, there is a finite limit on the number of sprites that may be displayed by the hardware per frame, or per scanline. Sprites are most commonly utilised to output the display of video games, but there are also other applications.

The sprite multiplexing technique is based on the idea that before the video hardware displays the next frame, the computer program will program the hardware to display those sprites that are first to be displayed. After those sprites have been displayed, the program then reprograms the hardware to display the remaining sprites. That way, the number of sprites that appear on the screen may be doubled, or increased even more.

The programmer must carefully consider the layout of the screen. If the video graphics hardware is not reprogrammed in time for the extra sprites to be displayed, they will not appear.

The technique relies on the program being able to identify what part of the screen is being drawn at the moment, or being triggered by the video hardware to run a subroutine at the crucial moment.

Computers that allowed the programmer to employ the sprite multiplexing technique include:

Modern video graphics hardware typically does not use hardware sprites, since modern computer systems do not have the kind of memory bandwidth limitations that sprite hardware is designed to circumvent.